
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/public/header/permissionCommon.jspf" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="itheima" uri="http://ChanghuXian.com/common/"%>


<html>
<head>
    <title>签到签退管理</title>
    <link href="${webPath}/css/Sign/bootstrap.min.css" rel="stylesheet">
    <%@include file="/resources/commons/basejs.jsp" %>
</head>
<body class="layui-layout-body" onload="load()">
<div class="layui-layout layui-layout-admin">
    <!-- 头部和左侧导航-->
    <div id="header"></div>

    <!--右侧主体区域-->
    <div class="layui-body">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">签到签退异常预警</li>

            </ul>
        </div>
        <table id="id_table" lay-filter="lineToolFilter"></table>


    </div>

    <!--底部-->
    <div id="footer"></div>
    <script>
        $("#header").load("${webPath}/publicPages/permission/fragments/header.jsp");
        $("#footer").load("${webPath}/publicPages/permission/fragments/footer.jsp");
    </script>
    <script type="text/javascript" src="${webPath}/js/permission/dateUtils.js"></script>

</div>
</body>

<script>
    var modleName = "${ctxPath}/qiandao";
    //用layui加载数据
    function onLayuiInit() {
        //渲染表格
        renderTable({
            elem: '#id_table',
            id: 'id_table',
            toolbar: '#toolBar3',
            url: modleName+"/getAlarmList",
            cols:[[
                {type:'checkbox',LAY_CHECKED:false},
                {field:'id',title:'清单编号',align:'center'},
                {field:'name',title:'老人医保卡ID',align: 'center'},
                {field:'lr_name',title:'老人名字',align: 'center'},
                {field:'hg_name',title:'护工名字',align: 'center'},

                {field:'f_sign',title:'签到时间',align: 'center',templet:function (d) {
                        return layui.util.toDateString(d.f_sign);
                    }
                },
                {field:'s_sign',title:'中签时间',align: 'center',templet:function (d) {
                        return layui.util.toDateString(d.s_sign);
                    }
                },
                {field:'t_sign',title:'签退时间',align: 'center',templet:function (d) {
                        return layui.util.toDateString(d.t_sign);
                    }
                },
                {title:'操作',align: 'center',toolbar: '#bar3'}
            ]]
        });
        //使用父类的航工具栏
        useParentToolEvent(modleName);
    }



</script>
</html>